package Demo2;

public class Test {
    public static void main(String[] args) {
        Animal animal=new Frog("大兵","绿色","非哺乳");
        animal.eat();
        animal.yell();
        Swimming swimming =new Frog();
        swimming.swimming();

        Animal animal1=new Rabbit("美人","黑色","哺乳");
        animal1.yell();
        animal1.eat();
    }
}
